package com.letme.store.domain.vo;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 城市树虚拟类
 *
 * @Description
 * @Author lock-xq
 * @Date 2023/2/25 20:32
 **/
@Data
public class CityTreeVo implements Serializable {

    private static final long serialVersionUID = 1L;
    /** 地区编码 */
    private String addrCode;

    /** 地区名称 */
    private String addrName;

    /** 父编号 */
    private String fatherCode;

    /** 等级，01：省，02：市，03：区县 */
    private String type;

    /** 子集 */
    private List<CityTreeVo> children;

    /** 构造函数 */
    public CityTreeVo(String addrCode, String addrName, String fatherCode, String type) {
        this.addrCode = addrCode;
        this.addrName = addrName;
        this.fatherCode = fatherCode;
        this.type = type;
    }

    //构建空类
    public CityTreeVo() {

    }
}
